<?php
namespace Admin\Controller;
use Think\Controller;
class BaseController extends Controller{
    public function _initialize(){

        // 判断是否登陆
        if(!session('?admin')){
            $this->redirect('Login/login');die;
        }
    }
}